package com.bw.entity;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class HouseAddParam {

    private Integer id;


    @NotBlank(message = "名称不为空")
    private String name;
    @NotBlank(message = "地址不为空")
    private String address;
    @NotNull(message = "图片不为空")
    private MultipartFile picFile; // 接收浏览器传来的图片  spring自带的
    @NotNull(message = "省份不为空")
    private Integer provinceId;
    @NotNull(message = "城市不为空")
    private Integer cityId;
    @NotBlank(message = "区不为空")
    private String qu;

    private String url;  // 图片的访问地址   往数据库里存


}
